<template>
  <input
    type="color"
    :value="color"
    @change="$emit('change', $event)"
    @input="$emit('input', $event)"
  />
</template>

<script lang="ts">
export default { name: 'TemplateColor' };
</script>
<script setup lang="ts">
defineProps({
  color: {
    type: String,
    required: true
  }
});
defineEmits(['change', 'input']);
</script>
